package com.designpattern.creating.singleton;

/**
 * @Author chengzelee
 * @Date 2022/11/24 18:12
 * @Desc 饿汉单例，线程安全
 */
public class Singleton_hungry {

    private static Singleton_hungry instance = new Singleton_hungry();

    public static Singleton_hungry getInstance(){
        return instance;
    }
}
